import request from '@/axios'

//分页获取用户列表数据
export const pageApi = (data) => {
  return request.post({ url: '/rbac-server/rbac/user/page', data })
}
//新增用户
export const addApi = (data) => {
  return request.post({ url: '/rbac-server/rbac/user/add', data })
}
//获取用户
export const getApi = (params) => {
  return request.get({ url: '/rbac-server/rbac/user/get', params })
}
//改变用户状态
export const checkstateApi = (id) => {
  return request.put({ url: '/rbac-server/rbac/user/checkstate', params: { id } })
}
//修改组织
export const updateApi = (data) => {
  return request.put({ url: '/rbac-server/rbac/user/update', data })
}
//获取用户详细信息
export const getUserInfoApi = (id) => {
  return request.get({ url: '/rbac-server/rbac/user/getUserInfo', params: { id } })
}

//用户修改密码
export const repasswordApi = (data) => {
  return request.put({ url: '/rbac-server/rbac/user/repassword', data })
}
